//
//  BaseViewController.h
//  SmartCar
//
//  Created by cslab on 16/4/2.
//  Copyright © 2016年 cslab. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YHPopMenuView.h"
@interface BaseViewController : UIViewController

@property (nonatomic,strong) UIImageView * animationView;
@property (nonatomic) CGFloat barBGAlpha;// 0-1 默认为1;
@property (nonatomic) BOOL canScroll;
@property (nonatomic) BOOL dataHasLoad;

@property (nonatomic) BOOL NoAnimation;

@property (nonatomic, strong) UIScrollView *subScrollView;// 记录子类 UIScrollView

@property (nonatomic, strong)YHPopMenuView * popMenu;

- (void)rightBarButton:(NSString *)title color:(UIColor *)color selector:(SEL)selector;

- (void)rightBarButtonWithImageName:(NSString *)imageName selector:(SEL)selector;

- (void)leftBarButton:(NSString *)title  color:(UIColor *)color selector:(SEL)selector;

- (void)leftBarButtonWithImageName:(NSString *)imageName selector:(SEL)selector;

- (void)leftBarButton1WithImageName:(NSString *)imageName1 selector1:(SEL)selector1 button2ImageName:(NSString *)imageName2 selector2:(SEL)selector2;


- (void)configEmptyDataTableView:(UIScrollView *)subScrollView
                  emptyImageName:(NSString *)imageName
                        describe:(NSString *)describe
                         refresh:(NSString *)btnName
                           block:(void (^) ())block;

- (void)backBarButtonWithImageName:(NSString *)imageName;

- (void)setNavGradient;
@end
